@model List<CrazyToDo.Web.Models.MatterViewModel>
    @{
        Layout = null;
    }

    <ul>
    @foreach (var item in Model)
            {
                if (item != null)
                {
                    if (item.State == false)
                    {
                <li>
                    <span class="input-group-addon" id="input-group-addon-check">
                        <input type="checkbox" id="check" onclick="changeStateInMatter(@item.Id)">
                    </span>
                    <span class="input-group-addon" id="input-group-addon-delete">
                        <img src="~/Home/img/删除(1).png" class="delete" onclick="DeleteMatterInMatter(@item.Id)" />
                    </span>
                    <p type="text" class="form-control" onclick="details(@item.Id)"> @item.Content </p>

                </li>

            }
            else
            {

                <li>
                    <span class="input-group-addon" id="input-group-addon-check">
                        <input type="checkbox" id="check" checked="checked" onclick="changeStateInMatter(@item.Id)">
                    </span>
                    <span class="input-group-addon" id="input-group-addon-delete">
                        <img src="~/Home/img/删除(1).png" class="delete" onclick="DeleteMatterInMatter(@item.Id)" />
                    </span>
                    <p type="text" style="text-decoration:line-through;" class="form-control" onclick="details(@item.Id)"> @item.Content </p>
                </li>
            }

        }


    }

</ul>

